#region License
///License Begin
///This program has been developed by: Rodolfo Grave de Peralta, 
///Copyright (C) 2007 Rodolfo Grave de Peralta
///This program is free software; you can redistribute it and/or modify
///it under the terms of the GNU General Public License as published by
///the Free Software Foundation; either version 2 of the License, or
///(at your option) any later version.
///
///This program is distributed in the hope that it will be useful,
///but WITHOUT ANY WARRANTY; without even the implied warranty of
///MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
///GNU General Public License for more details.
///
///You should have received a copy of the GNU General Public License
///along with this program; if not, write to the Free Software
///Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
///License End
#endregion

using System;
using System.Collections.Generic;
using System.Configuration;

namespace TEAM.TimeTracking.View
{
    public class DefaultConfig : IConfig
    {

        public DefaultConfig()
        {
            ConfirmDefaultArrivingTask = true;
            ConfirmDefaultLeavingTask = true;
            UseRemoteConnection = Convert.ToBoolean(ConfigurationManager.AppSettings["UseRemoteConnection"]);
            LocalDatabasePath = ConfigurationManager.AppSettings["LocalDatabasePath"];
            RemoteDBHostName = ConfigurationManager.AppSettings["RemoteDBHostName"];
            RemoteDBPort = Convert.ToInt32(ConfigurationManager.AppSettings["RemoteDBPort"]);
            RemoteDBUser = ConfigurationManager.AppSettings["RemoteDBUser"];
            RemoteDBPassword = ConfigurationManager.AppSettings["RemoteDBPassword"];

            UserName = ConfigurationManager.AppSettings["UserName"];
            UserPassword = ConfigurationManager.AppSettings["UserPassword"];
        }

        protected bool confirmDefaultArrivingTask;

        public bool ConfirmDefaultArrivingTask
        {
            get { return confirmDefaultArrivingTask; }
            set { confirmDefaultArrivingTask = value; }
        }

        protected bool confirmDefaultLeavingTask;

        public bool ConfirmDefaultLeavingTask
        {
            get { return confirmDefaultLeavingTask; }
            set { confirmDefaultLeavingTask = value; }
        }

        protected bool useRemoteConnection;

        public bool UseRemoteConnection
        {
            get { return useRemoteConnection; }
            set { useRemoteConnection = value; }
        }

        protected string localDatabasePath;

        public string LocalDatabasePath
        {
            get { return localDatabasePath; }
            set { localDatabasePath = value; }
        }

        protected string remoteDBHostName;

        public string RemoteDBHostName
        {
            get { return remoteDBHostName; }
            set { remoteDBHostName = value; }
        }

        protected int remoteDBPort;

        public int RemoteDBPort
        {
            get { return remoteDBPort; }
            set { remoteDBPort = value; }
        }

        protected string remoteDBUser;

        public string RemoteDBUser
        {
            get { return remoteDBUser; }
            set { remoteDBUser = value; }
        }

        protected string remoteDBPassword;

        public string RemoteDBPassword
        {
            get { return remoteDBPassword; }
            set { remoteDBPassword = value; }
        }

        protected string userName;

        public string UserName
        {
            get { return userName; }
            set { userName = value; }
        }

        protected string userPassword;

        public string UserPassword
        {
            get { return userPassword; }
            set { userPassword = value; }
        }

        protected string excelExportTemplatesFolder;

        public string ExcelExportTemplatesFolder
        {
            get
            {
                return excelExportTemplatesFolder;
            }
            set
            {
                excelExportTemplatesFolder = value;
            }
        }
    }
}
